package custom.alfresco.replication;

import java.lang.reflect.Method;
import org.springframework.aop.MethodBeforeAdvice;

/**
 * 
 * @author Rui Fernandes
 *
 */
public class LockBeforeReplica implements MethodBeforeAdvice
{
	@Override
	public void before(Method method, Object[] args, Object target)
		throws Throwable {
			if(method.getName().equals("begin")) {
				System.out.println("LockBeforeReplicaMethod : Before method called for method begin. I could lock here.");
			}
	}
}
